package com.ticket.sass.admin.dto.output.config;

import com.ticket.sass.common.entity.tenant.ServiceChargeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ywb
 * @date 2024-04-14 10:50
 */
@Data
@ApiModel
public class ServiceChargeOutput {
    @ApiModelProperty(value = "手续费")
    private BigDecimal handleFee = new BigDecimal("0.0");;
    
    @ApiModelProperty(value = "服务费")
    private BigDecimal serviceFee = new BigDecimal("0.0");;
    
    @ApiModelProperty(value = "渠道服务费")
    private BigDecimal channelServiceFee = new BigDecimal("0.0");
    
    @ApiModelProperty(value = "是否包含在票价")
    private Boolean handleFeeContain = Boolean.FALSE;
    
    @ApiModelProperty(value = "是否包含在票价")
    private Boolean serviceFeeContain = Boolean.FALSE;
    
    @ApiModelProperty(value = "是否包含在票价")
    private Boolean channelServiceFeeContain = Boolean.FALSE;
    

    
    public ServiceChargeOutput() {
    }
    
    public ServiceChargeOutput(ServiceChargeEntity entity) {
        this.handleFee = entity.getHandleFee();
        this.serviceFee = entity.getServiceFee();
        this.channelServiceFee = entity.getChannelServiceFee();
        this.handleFeeContain = entity.getHandleFeeContain();
        this.serviceFeeContain = entity.getServiceFeeContain();
        this.channelServiceFeeContain = entity.getChannelServiceFeeContain();
    }
}
